<include file="../Public/header" />
<script data-main="__PUBLIC__/admin/js/page/cms/template/addtpl" src="__PUBLIC__/admin/js/lib/requirejs/require.js"></script>
</head>
<body>
  <div class="page">
    <div class="page-hd">
      <h1>添加模版</h1>
    </div>
    <div class="form">
      <form id="J_form" action="{:URL('cms/Template/doaddtpl')}" method="POST">
        <input type="hidden" name="sid" id="sid" value="{$sid}" />
        <dl class="kv">
          <dt>
            <label>模版类型：</label>
          </dt>
          <dd>
            <select name="module" id="module">
              <option value="channels">栏目模版</option>
              <option value="contents">内容模版</option>
              <option value="home">首页模版</option>
              <option value="public">公用模版</option>
              <option value="search">搜索模版</option>
            </select>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>模版名称：</label>
          </dt>
          <dd>
            <input class="input-text" type="text" name="fieldname" id="fieldname" required />
            <font color="red">*</font>
            <div class="kv-error"></div>
          </dd>
        </dl>
        <dl class="kv" style="display: none;" id="cn">
          <dt>
            <label>生成模版名称：</label>
          </dt>
          <dd>
            <input class="input-text" type="text" name="create_name" id="create_name" required />
            <font color="red">*</font>
            <div class="kv-error"></div>
          </dd>
        </dl>
        <dl class="kv">
          <dt>
            <label>模版内容：</label>
          </dt>
          <dd>
            <textarea rows="30" cols="135" name="templateContent" id="templateContent" required ></textarea>
            <font color="red">*</font>
            <div class="kv-error"></div>
          </dd>
        </dl>
        <div class="actions">
          <input class="btn btn-y" type="submit" value="添加" />
          <input class="btn btn-n" type="button" value="取消" onclick="javascript:history.go(-1);">
        </div>
      </form>
    </div>
  </div>
</body>
</html>
